package apiday05home;

import java.io.File;
import java.util.Scanner;

public class Test03 {
    public static void main(String[] args) {
        Scanner scan = new Scanner(System.in);
        System.out.println("请输入一个目录");
        String mulu=scan.nextLine();
        File file=new File("./"+mulu);
        if(file.exists()){
            System.out.println("该目录已存在");
        }else {
            file.mkdirs();
            System.out.println("该目录已创建");
        }

    }
}
